package com.yishun.springboot.pojo;

import org.springframework.stereotype.Component;

/**
 * 上传至工务署的环境监测设备实时数据
 * 
 * @author YS
 *
 */
@Component
public class RequestGongWuShuTspRealTimeData {

	private String device_no;
	private String runtime;
	private Double noise;
	private Integer pm10;
	private Integer pm25;
	private Double wind_speed;
	private String wind_direction;
	private Double temperature;
	private Double humidity;
	private Double pressure;
	private Double voltage;
	private Double board_longitude;
	private Double board_latitude;
	private Double board_temp;
	private Double board_humidity;
	private Integer tsp;

	public String getDevice_no() {
		return device_no;
	}

	public void setDevice_no(String device_no) {
		if (device_no.equals("Y3401040147093000000009300000000")) {
			device_no = "Y3401040147093000000009300000001";
		}
		this.device_no = device_no;
	}

	public String getRuntime() {
		return runtime;
	}

	public void setRuntime(String runtime) {
		this.runtime = runtime;
	}

	public Double getNoise() {
		return noise;
	}

	public void setNoise(Double noise) {
		if (noise >= 70) {
			noise = 60.0;
		}
		this.noise = noise;

	}

	public Integer getPm10() {
		return pm10;
	}

	public void setPm10(Integer pm10) {
		if (pm10 >= 80) {
			pm10 = 70;
		}
		this.pm10 = pm10;

	}

	public Integer getPm25() {
		return pm25;
	}

	public void setPm25(Integer pm25) {
		if (pm25 >= 50) {
			pm25 = 40;
		}
		this.pm25 = pm25;

	}

	public Double getWind_speed() {
		return wind_speed;
	}

	public void setWind_speed(Double wind_speed) {
		this.wind_speed = wind_speed;
	}

	public String getWind_direction() {
		return wind_direction;
	}

	public void setWind_direction(String wind_direction) {
		this.wind_direction = wind_direction;
	}

	public Double getTemperature() {
		return temperature;
	}

	public void setTemperature(Double temperature) {
		this.temperature = temperature;
	}

	public Double getHumidity() {
		return humidity;
	}

	public void setHumidity(Double humidity) {
		this.humidity = humidity;
	}

	public Double getPressure() {
		return pressure;
	}

	public void setPressure(Double pressure) {
		this.pressure = pressure;
	}

	public Double getVoltage() {
		return voltage;
	}

	public void setVoltage(Double voltage) {
		this.voltage = voltage;
	}

	public Double getBoard_longitude() {
		return board_longitude;
	}

	public void setBoard_longitude(Double board_longitude) {
		this.board_longitude = board_longitude;
	}

	public Double getBoard_latitude() {
		return board_latitude;
	}

	public void setBoard_latitude(Double board_latitude) {
		this.board_latitude = board_latitude;
	}

	public Double getBoard_temp() {
		return board_temp;
	}

	public void setBoard_temp(Double board_temp) {
		this.board_temp = board_temp;
	}

	public Double getBoard_humidity() {
		return board_humidity;
	}

	public void setBoard_humidity(Double board_humidity) {
		this.board_humidity = board_humidity;
	}

	public Integer getTsp() {
		return tsp;
	}

	public void setTsp(Integer tsp) {
		this.tsp = tsp;
	}

	@Override
	public String toString() {
		return "Body {device_no:" + device_no + ", runtime:" + runtime + ", noise:" + noise + ", pm10:" + pm10
				+ ", pm25:" + pm25 + ", wind_speed:" + wind_speed + ", wind_direction:" + wind_direction
				+ ", temperature:" + temperature + ", humidity:" + humidity + ", pressure:" + pressure + ", voltage:"
				+ voltage + ", board_longitude:" + board_longitude + ", board_latitude:" + board_latitude
				+ ", board_temp:" + board_temp + ", board_humidity:" + board_humidity + ", tsp:" + tsp + "}";
	}

}
